<?php
//Criado por Bruno Maciel

set_time_limit(9000);
ini_set('memory_limit', '900M');
ini_set('max_execution_time', 0);

try{
	

	try
	{
		
		require_once( "define.php" );
		
		require_once( PATH_APPLICATION
					._SEPARATOR_SO
					.'exception.php' );
	
		require_once( PATH_APPLICATION
					._SEPARATOR_SO
					.'configuration.class.php' );
	
		require_once( PATH_FRAMEWORK
					._SEPARATOR_SO
					.'framework.class.php' );
							
		require_once( PATH_APPLICATION
					._SEPARATOR_SO
					.'application.class.php' );
		
		
								
		application::instance();
		
		
	} catch (AppException $e) {
	   	
		showAppException( $e );
		//exit("bqqqrufdgfgdfnoff");
		
	}


} catch (Exception $e) {
   	
	$result=array("status"=>0,
				"data"=>$e->getMessage().'<br>'.$e->getTraceAsString(),
				"notification"=>-1);
									
				echo json_encode($result); 					
				exit();
				
	//echo 'ERROR FATAL: '.$e->getMessage().'<br>'.$e->getTraceAsString();
	
}


?>